<?php
// +----------------------------
// | Created by PhpStorm
// +----------------------------
// | Author: YnnSon
// +----------------------------
namespace app\api\controller\v1;

use app\api\model\VehicleInspectionCompany as VehicleInspectionCompanyModel;
use app\api\validate\VehicleInspectionCompanyValidate;
use think\Request;

/**
 * 分站承检车型
 * Class VehicleInspectionCompany
 * @package app\api\controller\v1
 */
class VehicleInspectionCompany extends BaseController
{
    /**
     * @Desc 根据车型获取检车项目
     * @return bool|false|\PDOStatement|string|\think\Collection
     */
    public function getList()
    {
        (new VehicleInspectionCompanyValidate())->goCheck();
        $param = Request::instance()->param();
        return VehicleInspectionCompanyModel::getListByType($param);
    }
}